package com.example.diemtinvietnam;


import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.content.Intent;
public class viewWeb extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {		
		super.onCreate(savedInstanceState);			
		setContentView(R.layout.view_detail);
		Log.e("viewWeb","ok1");
		Intent intent = getIntent();
		Log.e("viewWeb","ok2");
		String link=intent.getStringExtra("link");
		Log.e("viewWeb","ok3, link="+link);
		WebView myWebView = (WebView) findViewById(R.id.webview);
		Log.e("viewWeb","ok4");
		WebSettings webSettings = myWebView.getSettings();
		Log.e("viewWeb","ok5");
		webSettings.setJavaScriptEnabled(true);
		myWebView.loadUrl(link);
		Log.e("viewWeb","ok6");
	}
}
